<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <body>

        <ui:composition>

            <div id="post">

                <h3>Relatório de Lista Cadastrada</h3>

                <div id="stylized" class="myform">

                    <div id="relato">
                        <table>
                            <thead>
                                <tr>
                                    <th>ID</th>
                                    <td>#{ListaController.listaAux.id}</td>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <th>Título</th>
                                    <td>#{ListaController.listaAux.titulo}</td>
                                </tr>
                                <tr>
                                    <th>Data de Criação</th>
                                    <td>#{ListaController.listaAux.dataCriacao}</td>
                                </tr>


                            </tbody>
                        </table>
                    </div>
                    <br />
                    <br />

                    <!--
                                        <ui:repeat value="{ListaController.questoesDaLista}"  var="questaoTemp" step="1" varStatus="status" >
                    
                                            <div id="stylized" class="questao" style="border-bottom: solid 1px; display: block">
                    
                                                <ui:include src="../questao/questaoView.xhtml" />
                    
                                            </div>
                    
                                        </ui:repeat>-->




                    <h:commandButton styleClass="button" action="#{PageManager.setPageListaCad}" value="Novo"  id="novo"/>
                    <h:commandButton styleClass="button" action="#{ListaController.editButton}" value="Editar" id="editar" />
                    <h:commandButton styleClass="button" action="#{ListaController.destroyButton}" value="Excluir" id="excluir"/>
                    <h:commandButton styleClass="button" action="#{PageManager.setPageListaPrint}" value="Imprimir" id="imprimir"/>
                    <h:commandButton styleClass="button" action="#{ListaAlunoController.setPageListaAlunoCad}" value="Aplicar" id="aplicar"/>
                    <h:commandButton styleClass="button" action="#{CorrecaoListaAlunoController.setPageCorrecaoListaAlunoCad}" value="Corrigir" id="corrigir"/>
                    <h:commandButton styleClass="button" action="#{PageManager.setPageWorkspacePesquisa}" value="Add Questões" id="addQuestoes"/>
                    <h:commandButton styleClass="button" action="#{PageManager.setModalDownloadLista}" value="Download" id="down"/>

                    


                </div>

                <div class="questao" >

                    <p:panel id="pnl1"  header="Questões da Lista" toggleable="true" toggleSpeed="500" closeSpeed="2000" widgetVar="panel">

                        <p:dataList value="#{ListaController.questaos}"  var="questaoTemp" paginator="true" type="ordered" rows="10" effectSpeed="fast" id="listaQuestoes"  
                                    paginatorTemplate="{PreviousPageLink} {CurrentPageReport} {NextPageLink} {RowsPerPageDropdown}"  
                                    rowsPerPageTemplate="5,10,15" >  
                            <p:column>

                                <ui:include src="../questao/questaoView.xhtml" />
                                <!--                            <div id="painel">
                                                                <h:commandLink title="Visualizar" action="{QuestaoController.load}" >
                                                                    <f:attribute name="questaoTemp" value="{questaoTemp}" />
                                                                    <ui:param name="questaoTemp" value="{questaoTemp}" />
                                                                    <p:graphicImage value="/resources/icones/icon_view.gif"/>
                                                                </h:commandLink>
                                
                                                            </div>-->
                            </p:column>
                        </p:dataList>
                    </p:panel>
                </div>

            </div>
        </ui:composition>

    </body>
</html>
